package com.example.bookstore.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
@Data
public class Orders implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String no;//订单号
    private String name;//订单名称
    private int userId;
    private double totalPrice;//总价
    private String status;//状态( 待付款 待发货 待签收 已签收 )
    private String creatTime;//创建时间
    private String payTime;//缀法时间
    private String bookImg;
    private int addresseeId;
    private String deliveryTime;//发货时间
    private String signTime;//收获时间

    @TableField(exist = false)
    private String username;//用户名
    private int isAppraise;//是否已评价

}
